

all:thread_conndition thread_pipe

thread_conndition:common-thread-pool.o thread-control-condition.o
	cc -Wall -O3 -g common-thread-pool.o thread-control-condition.o \
	 -o $@ -lpthread
	
thread_pipe:common-thread-pool.o thread-control-fifopipe.o
	cc -Wall -O3 -g common-thread-pool.o thread-control-fifopipe.o \
	 -o $@ -lpthread

common-thread-pool.o:common-thread-pool.c
	cc -Wall -O3 -g -c -o $@ $<

thread-control-condition.o:thread-control-condition.c
	cc -Wall -O3 -g -c -o $@ $<

thread-control-fifopipe.o:thread-control-fifopipe.c
	cc -Wall -O3 -g -c -o $@ $<

.PHONY:clean

clean:
	rm -f *.[ao]
	rm -f thread_conndition thread_pipe